#!/bin/bash

#curl -C - --trace-ascii LOG -O "http://hrm.bizbook.ru/listing.php?book_id=24165&page_num=[1-285]&reset"

# !!
#curl -C - --trace-ascii LOG "http://hrm.bizbook.ru/listing/get_img.php?book_id=24165&page_num=[1-285]" -o "str_#1.gif"

#URL='http://hrm.bizbook.ru/listing/get_img.php?book_id=26241&page_num='

#Url to book
#URL='http://science.bizbook.ru/listing.php?book_id=22084&page_num='
URL='http://hrm.bizbook.ru/listing/get_img.php?book_id=22084&page_num='


function book_GET(){
#$1 - URL
#$2 - Proxy
#$3 - Range. Must be a string WITH [ or {. For more detailes see ranges in man curl.
http_proxy=195.175.37.70:8080
curl -v --proxy $2 -C - "$1$3" -o "page_#1.gif" --connect-timeout 30
#curl -v --socks5 $2 -C - "$1$3" -o "page_#1.gif" --connect-timeout 30
}

#book_GET $URL 148.233.229.236:3128 1 50
#book_GET $URL 66.98.238.8:3128 1 50
#book_GET $URL 130.136.254.22:3124 '[12-50]'
#book_GET $URL 61.132.27.68:80 '[12-60]'
#book_GET $URL 206.55.180.133:3128 '[61-109]'
#book_GET $URL 121.22.5.33:80 '[110-161]'
#book_GET $URL 213.41.192.186:80 '[159-209]'
#book_GET $URL 202.71.128.85:80 '[210-260]'
#book_GET $URL 200.207.51.237:6588 '[259-309]'
#book_GET $URL 24.92.26.11:16345 '[326-376]'
#book_GET $URL 88.180.248.64:16638 '{359-361}'
#book_GET $URL 83.69.221.157:80 '{364,370,371,372,375,377,378,379,380}'
#book_GET $URL 195.54.209.166:3128 '{...416}'
#book_GET $URL 195.54.209.151:3128 '[416-465]'
#book_GET $URL 189.30.30.74:3128 '[466-515]'
#book_GET $URL 201.66.22.65:3128 '[510-559]'
book_GET $URL 91.74.160.18:8080 '{431,432,434,437,439,444,445,446,449,452,453,456,457,459,462,464}'
exit

#HTTP proxies:

201.40.103.94:3128
200.249.112.136:3128


#Anonymous HTTP proxies:
91.74.160.18:8080
67.131.248.106:80
64.71.168.120:8080
85.91.80.52:80
212.28.241.186:3128

#High anonymous (elite) HTTP proxies:
123.236.99.185:6588
69.27.230.1:80
202.154.255.5:80
202.134.187.141:3128
217.170.76.127:80

#Free HTTPS proxy list:
123.236.99.185:6588
200.223.24.211:3128
#Free SOCKS 4 proxy list:
59.44.98.198:8888
82.242.85.150:14399
76.179.175.26:59249
75.36.254.180:9686
71.163.174.140:23969
#Free SOCKS 5 proxy list:
76.179.175.26:59249
71.163.174.140:23969
71.163.174.140:23835
24.20.14.112:17235
71.147.50.122:16491

#Free RUSSIAN proxies:
62.231.19.190:3128
83.69.221.157:80
195.54.209.151:3128
202.5.195.3:8080
195.54.209.166:3128
212.220.154.218:3128
194.67.88.36:12534
194.67.88.36:18740
217.9.231.213:80
